<template>
  <el-select
    :value="value"
    :clearable="clearable "
    :filterable="filterable "
    placeholder="回款类型"
    @input="handleInput"
    @focus="handleFocus"
    @blur="handleBlur"
    @change="handleChange"
  >
    <el-option
      v-for="item in list"
      :key="item.code"
      :label="item.code_name"
      :value="item.code"/>
  </el-select>
</template>

<script>
import { getChangePaymentTypes } from '@/api/account/accountChange'
import selectComponents from './selectComponents'

export default {
  name: 'ChangePaymentTypes',
  mixins: [selectComponents],
  data() {
    return {
      list: []
    }
  },
  created() {
    this.loadData()
  },
  methods: {
    loadData() {
      getChangePaymentTypes().then(res => {
        this.list = res.data
      })
    }
  }
}
</script>
